<!doctype html>
<html>
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-touch-fullscreen" content="yes" />
  <meta name="format-detection" content="telephone=no"/>
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="msapplication-tap-highlight" content="no" />
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<meta name="author" content="中国追溯">
<meta name="copyright" content="中国追溯 Inc. All Rights Reserved">
  <title>商品详情</title>
  <link rel="stylesheet" type="text/css" href="../../css/base.css">
  <link rel="stylesheet" type="text/css" href="../../css/nctouch_dhome_index.css">
  <link rel="stylesheet" type="text/css" href="../../css/nctouch_dhome_detail.css">
  <link rel="stylesheet" type="text/css" href="../../css/nctouch_dhome_nav.css">
  <style type="text/css">
  </style>
  <script type="text/javascript">
var SiteUrl = "/shop";
var ApiUrl = "/mobile";
var WapSiteUrl = "/wap";
var pagesize = 10;
</script>
<script type="text/javascript" src="../../js/config.js"></script>
<script type="text/javascript" src="../../js/zepto.min.js"></script>
<script type="text/javascript" src="../../js/template.js"></script>
<script type="text/javascript" src="../../js/swipe.js"></script> 
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/simple-plugin.js"></script>
<script type="text/javascript" src="../../js/tmpl/dhome/uptop.js"></script>
<script type="text/javascript" src="../../js/tmpl/dhome/goods_detail.js"></script>
<script type="text/javascript" src="../../js/tmpl/dhome/dhome_buy.js"></script>
</head>

<body>
<div class="goods-detail-top"></div>
<div class="goods-detail-cnt">
  <div class="goods-detail-comment" id="goodsEvaluation1">
    <div class="title"> 
      <a href="javascript:void(0);">
        商品评价
        <span class="rate">好评率<em></em></span>
        <span class="rate-num"></span>
        <div class="item-more"></div>
      </a>
    </div>
    <div class="comment-info">
    </div>
  </div>
</div>

<div class="sc-box">
  <div class="sc-box-line"></div>
  <a cart_goods_show="1" onclick="show_cart(1)" href="javascript:void(0);" class="sx1 show"></a>
  <div id="chain_cart_total" class="sx2">
    <div class="sx3">购物车是空的</div>
  </div>
  <a id="chain_cart_buy" onclick="cart_buy()" class="sx4 dib" href="javascript:void(0);">去结算</a>
  <div id="chain_cart_content" class="minicart-content" style="display: none;transform: translateY(-100%);"> 
    <a cart_goods_show="2" onclick="show_cart(0)" href="javascript:void(0);" class="sx1 incart-con light show"></a> 
    <i class="a3m"></i>
    <div class="a3n"><span id="chain_cart_checked" onclick="show_cart_checked(0)" class="a4q a4r">全选</span>
      <p id="chain_cart_selected" class="a4t"></p>
      <a onclick="chain_del_cart(0)" href="javascript:void(0);" class="a3o">清空购物车</a></div>
    <div class="a3q" style="height: auto;">
      <div class="a41 single">
        <ul id="chain_cart_goods_list" class="minicart-goods-list single">
        </ul>
      </div>
    </div>
    <div style="height:49px;"></div>
  </div>
  <div id="chain_cart_mask" onclick="show_cart(0)" class="a3f" style="display: none;"></div>
</div>
<div class="nav-r-box bothvisible" style="bottom: 117px;">
  <div class="nav-r">
     <a class="fl" href="../../dhome.html">首页</a>
     <a class="yp" href="./category.html">分类</a>
     <a class="ss" href="./store.html?chain_id=">门店</a>
     <a class="yr" href="../member/order_list.html?chain=1">订单</a>
     <a class="wd" href="../member/member.html">我的</a>
     <i class="wds"></i>
  </div>
</div>
<div class="fix-block-box"><a id="goTop" class="fix-block-btn"  href="javascript:void(0);" style="bottom: 23px;"><i></i></a></div>
</body>
<script type="text/html" id="swipe_list_tpl">
    <div class="goods-detail-pic" id="mySwipe">
      <% var goods_image_list = goods_info.image_list;%>
      <ul>
        <% for (var i =0;i<goods_image_list.length;i++){ %>
        <li><img src="<%=goods_image_list[i].goods_image%>"/></li>
        <% } %>
      </ul>
    </div>
    <div class="goods-detail-turn">
      <ul>
        <% for (var i=0;i<goods_image_list.length;i++){ %>
        <li class="<% if(i == 0) { %>cur<%}%>"></li>
        <% } %>
      </ul>
    </div>
</script>
<script type="text/html" id="goods_detail_tpl">
  <div class="goods-detail-name">
    <dl>
      <dt><%=goods_info.goods_name%></dt>
    </dl>
  </div>
  <div class="e6 ">
    <div class="e7 dp">
      <p class="promotionprice"><span>￥</span><%=goods_info.chain_price%></p>
      <div class="Box check_number" chain_goods_id="<%=goods_info.goods_id%>">
        <span onclick="del_cart('<%=goods_info.goods_id%>')" class="reduce hide"></span>
        <label goods_num_id="<%=goods_info.goods_id%>" goods_stock="<%=goods_info.stock%>" class="hide">0</label>
        <span onclick="add_cart('<%=goods_info.goods_id%>')" class="add storeSearchCart"></span>
      </div>
    </div>
  </div>
  <div class="ex clearfix">
    <div class="ey"><a href="./store.html?chain_id=<%=chain_info.chain_id%>"><i class="dk f0"></i><span class="f1"><%=chain_info.chain_name%></span></a></div>
    <div class="ez"><a href="tel:<%=chain_info.chain_phone%>" ><i class="dk f2"></i><span class="f3">联系商家</span></a></div>
  </div>
</script>
<script type="text/html" id="goods_evaluate_tpl">
  <% var _len = evaluate_list.length; %>
  <% if(_len > 0){%>
  <%for(i=0;i<evaluate_list;i++){%>
  <dl>
    <dt>
      <div class="goods-raty"><i class="star<%=evaluate_list[i].geval_scores%>"></i></div>
      <time><%=evaluate_list[i].geval_addtime%></time>
      <span class="user-name"><%=evaluate_list[i].geval_frommembername%></span> </dt>
    <dd><%=evaluate_list[i].geval_content%></dd>
  </dl>
  <% } %>
  <% } %>
</script>
<script type="text/html" id="chain_cart_goods">
    <% for(i=0;i<goods_list.length;i++){%>
          <li chain_goods_id="<%=goods_list[i].goods_id%>" class="a43 <% if(goods_list[i].stock>0) { %>single<% } else { %>inval<% } %> ">
          <span chain_goods_checked="<%=goods_list[i].goods_id%>" <% if(goods_list[i].stock>0) { %>onclick="show_cart_checked(<%=goods_list[i].goods_id%>)"<% } %> class="a4q a44 <% if(goods_list[i].goods_selected>0) { %>checked<%}%>"></span>
          <a class="a47" href="goods_detail.html?goods_id=<%=goods_list[i].goods_id%>&chain_id=<%=goods_list[i].chain_id%>">
            <table class="a48">
              <tbody>
                <tr>
                  <td style=" width:62px; ">
                  <img src="<%=goods_list[i].goods_image_url%>" class="a49">
                  <% if(goods_list[i].stock<1) { %><i class="a50">无货</i><% } %> 
                  </td>
                  <td><div class="a4c"><%=goods_list[i].goods_name%></div>
                    <div class="a4l">
                      <div class="a45">￥<%=goods_list[i].chain_price%></div>
                    </div></td>
                </tr>
              </tbody>
            </table>
            </a>
            <% if(goods_list[i].stock>0) { %>
            <a onclick="del_cart('<%=goods_list[i].goods_id%>')" class="a4a"></a>
            <em goods_num_id="<%=goods_list[i].goods_id%>" goods_stock="<%=goods_list[i].stock%>" class="a4d"><%=goods_list[i].goods_num%></em>
            <a onclick="add_cart('<%=goods_list[i].goods_id%>')" class="a4b"></a>
            <% } else { %>
            <a onclick="chain_del_cart('<%=goods_list[i].goods_id%>')" class="a4a"></a>
            <em class="a4d">0</em>
            <a class="a4b"></a>
            <% } %> 
            </li>
    <% } %> 
</script>

</html>
